package com.defysoft.waukids.intro;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.defysoft.waukids.BaseFragment;
import com.defysoft.waukids.R;

public class Intro_Button_F extends BaseFragment {
	
	View view;
	TextView tv;
	int rank;
	String msg;
	
	
	public Intro_Button_F (int rank){
		this.rank= rank;
	}
	@Override
	public View onCreateView(LayoutInflater inflater,
			@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		view=inflater.inflate(R.layout.activity_intro__button__f, null);
		tv=(TextView)view.findViewById(R.id.INTRO_BUTTON_TV);
		if(rank==1){
			msg="안녕하세요 \n원장선생님";
		}else {
			msg="안녕하세요 \n선생님";
		}
		tv.setText(msg);
		return view;
	}
}
